<template>
  <div class="mobile-layout">
    <header class="mobile-header">
      <slot name="header"></slot>
    </header>
    <main class="mobile-main">
      <slot></slot>
    </main>
    <footer class="mobile-footer">
      <slot name="footer"></slot>
    </footer>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'MobileLayout'
})
</script>

<style scoped>
.mobile-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
}

.mobile-main {
  flex: 1;
  padding: 60px 16px 16px;
}

.mobile-footer {
  background: #fff;
  padding: 16px;
}
</style> 